package Cafezam;

import java.util.Scanner;

public class J09Retangle {

	public static void main(String[] args)
	{
		
		double width[]=new double[2];
		double height[]=new double[2];
		String color[]=new String[2];
		double area[]=new double[2];
		double perimeter[]=new double[2];
		
		
		//면적, 둘레 처리
		inputRetangle(width, height, color);
		getArea(area, width, height);
		getArea(area, width, height);
		
		System.out.println(width[1]);
		System.out.println(height[1]);
		System.out.println(area[1]);
		System.out.println(perimeter[1]);
		System.out.println(color[1]);
		
//		double width[] = new double[2];
//		double height[] = new double[2];
//		String color[] = new String[2];		
//		double getArea[]=new double[2];
//		double getPerimeter[]=new double[2];
//		input(width, height,color);
//		area(getArea, width, height);
//		perimeter(getPerimeter, width, height);
//		System.out.println("면적"+(int)getArea[1]);
//		System.out.println("둘레"+(int)getPerimeter[1]);
//		
//	sc.close();
	}//main
	//사각형 가로,세로,색상 입력
	public static void  inputRetangle(double width[],double height[],String color[])
	{
		Scanner sc=new Scanner(System.in);
		System.out.println("가로는");
		width[1]=sc.nextInt();
		System.out.println("세로는");
		height[1]=sc.nextInt();
		System.out.println("색상은");
		color[1]=sc.next();
		sc.close();
	
	}
	public static void getArea(double area[],double width[],double height[])
	{
		area[1]=width[1]*height[1];
		
	}
	public static void getPerimeter(double perimeter[],double width[],double height[])
	{
		perimeter[1]=(width[1]+height[1])*2;
	}
//	public static void input(double[] width,double[] height,String[] color)
//	{
//		Scanner sc = new Scanner(System.in);
//		System.out.println("가로 입력하시오");
//		width[1]=sc.nextInt();
//		System.out.println("세로 입력하시오");
//		height[1]=sc.nextInt();
//		System.out.println("색깔을 입력하시오");
//		color[1]=sc.next();
//		sc.close();
//	}
//	public static void area(double[] getArea,double[] width,double[] height)
//	{
//		getArea[1]=width[1]*height[1];
//	}
//	public static void perimeter(double[] getPerimeter,double[] width,double[] height)
//	{
//		getPerimeter[1]=(width[1]+height[1])*2;
//	
//	}
}
